package com.mm.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @ClassName EmployeeInsertBo
 * @Description TODO
 * @Author 任昊
 * @Date 2020/12/4 10:06
 */
@Data
@ApiModel(value = "新增员工信息传入参数",description = "新增员工信息传入参数")
public class EmployeeInsertBo {
    @ApiModelProperty(value = "员工姓名",name = "empName",required = true)
    @NotEmpty(message = "姓名不能为空")
    private String empName;

    @ApiModelProperty(value = "员工工号",name = "empNum",required = true)
    @NotEmpty(message = "姓名不能为空")
    private String empNum;

    @ApiModelProperty(value = "员工生日",name = "empBirthday",required = true)
    @NotNull(message = "员工生日不能为空")
    private Long empBirthday;

    @ApiModelProperty(value = "头像",name = "empPhoto",required = true)
    @NotEmpty(message = "头像不能为空")
    private String empPhoto;

    @ApiModelProperty(value = "身份证号",name = "empIdentityCard",required = true)
    @NotEmpty(message = "身份证号不能为空")
    private String empIdentityCard;

    @ApiModelProperty(value = "性别(1-男、2-女、3-保密)",name = "empSex",required = true)
    @NotNull(message = "性别不能为空")
    private Long empSex;

    @ApiModelProperty(value = "入职时间",name = "empEntryTime",required = true)
    @NotNull(message = "入职时间不能为空")
    private Long empEntryTime;

    @ApiModelProperty(value = "电话号码",name = "empPhoneNumber",required = true)
    @NotEmpty(message = "电话号码不能为空")
    private String empPhoneNumber;

    @ApiModelProperty(value = "家庭住址",name = "empAddress",required = true)
    @NotEmpty(message = "家庭住址不能为空")
    private String empAddress;

    @ApiModelProperty(value = "所属部门id",name = "depaId",required = true)
    @NotEmpty(message = "所属部门id不能为空")
    private String depaId;

    @ApiModelProperty(value = "职位id",name = "posiId",required = true)
    @NotEmpty(message = "职位id不能为空")
    private String posiId;

    @ApiModelProperty(value = "紧急联系人姓名",name = "empEmerName",required = true)
    @NotEmpty(message = "紧急联系人姓名不能为空")
    private String empEmerName;

    @ApiModelProperty(value = "紧急联系人电话",name = "empEmerPhone",required = true)
    @NotEmpty(message = "紧急联系人电话不能为空")
    private String empEmerPhone;

    private String token;
}
